const App = getApp()

Page({
    data: {
        indicatorDots: !1,
        autoplay: !1,
        current: 0,
        interval: 3000,
        duration: 1000,
        circular: !1,
        timeBan:0
    },
    onLoad() {
        this.setData({
            timeBan:Date.parse(new Date())
        })
        wx.removeStorageSync('product')
        wx.removeStorageSync('decorate')
    },
    onShow() {},
    bindload(e) {
        var that=this
         //登录态过期
    setTimeout(App.WxService.getStorageSync('token') ? that.goIndex : that.goLogin, 3000)
                
    },
    goIndex() {
        App.WxService.switchTab({
            url: '/pages/index/index'
        })
    },
    goLogin() {
        App.WxService.redirectTo('/pages/login/index')
    },
})
